package de.alfenory.autobill.logic;

import de.alfenory.autobill.entity.*;
import java.util.*;

/**
 *
 * @author alefen
 */
public class PartFacade {
    public static Part getPart(String partId, List<Part> partList) {
        for(Part part : partList) {
            if(part.getId().equals(partId)) {
                return part;
            }
        }
        return null;
    }
}
